package org.feiye.studyday03;

import java.util.Scanner;

public class HuiWenNum {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入一个五位数：");
		int num = sc.nextInt();
		int g = num % 10;
		int s = num / 10 % 10;
		int b = num / 100 % 10;
		int q = num / 1000 % 10;
		int w = num / 10000;
		if (num < 100000 && num >= 10000) {
			if (g == w && s == q) {
				System.out.println("这是一个回文数！");
			} else {
				System.out.println("不是回文数！");
			}
		} else {
			System.out.println("输入有误!");
		}
	}

}
